﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Contents.aspx.cs" Inherits="Sdepci.InfoCode.Web.Contents" %>
<%@ Register src="Includes/VerifyLoginState.ascx" tagname="VerifyLoginState" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>目录</title>
    <link rel="stylesheet" type="text/css" href="Css/Style.css" />
    <script type="text/javascript" src="Javascript/Tree.js"></script>
    <style type="text/css">
    #menutree
    {
	    overflow: auto;
	    width: 218px;
	    height: 240px;
	    text-align: left;
	    border: solid 1px #99cccc;
    }
    </style>
    <script language="javascript" type="text/javascript">
    function ShowTree()
    {
        affect = "menutree";
        icon = true;
        InitTreeXml();
        NodeAllExpand(rootNode);
    }
    
    function SetHeight()
    {
        document.getElementById("menutree").style.height = document.documentElement.clientHeight - 24 + "px";
    }
    
    function SetHeightDelay()
    {
        setTimeout(SetHeight, 500);
        setTimeout(ShowTree, 500);
    }

    // 窗口大小变化时重置界面
    window.onresize = SetHeight;
    </script>
</head>
<body style="background-color: #cfefef" onload="javascript:SetHeightDelay();">
    <form id="form1" runat="server">
    <uc1:VerifyLoginState ID="VerifyLoginState1" runat="server" />
    <div id="container">
        <div style="background-color: #9fcfcf; height: 18px; padding: 4px 0px 0px 0px; font-weight: bold;">
            功能菜单
            <img src="Images/menu_plus.gif" alt="展开全部项目" onclick="javascript:NodeAllExpand(rootNode);" style="vertical-align: top; cursor: pointer;" />
            <img src="Images/menu_minus.gif" alt="收起全部项目" onclick="javascript:NodeFirstLevelSetBy(rootNode);" style="vertical-align: top; cursor: pointer;" />
        </div>
        <div id="menutree">
            <div id="root_child">载入中...</div>
        </div>
    </div>
    </form>
</body>
</html>
